package com.talkweb.newproject.admin.sysacl.dao;

import com.talkweb.newproject.admin.sysacl.dto.SysAclDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by qsf on 2019/4/19.
 */
public interface SysAclDao {
    void deleteSysAcl(Map<String, Object> params);

    void updateSysAcl(Map<String, Object> params);

    void deleteSysAclByRoleId(SysAclDTO sysAclDTO);


    int insertSysAcl(@Param("roleId")Long roleId,@Param("resourceIds") String[] resourceids);

    SysAclDTO findSysAclByPrimaryKey(String id) throws Exception;

    List<SysAclDTO> searchSysAcl(Map<String, Object> map);

    SysAclDTO queryLikeSysAcl(Map<String, Object> params);
}
